package edu.sctu.zhangwang.month201505.day20150526;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2015/5/26 0026.
 */
public class AddList {
    public List<String> setAddList(){
        List<String> list = new ArrayList<String>();
        list.add("张三");
        list.add(0,"小二");

        return list;
    }
    public List<String> setAddListsTY(){
        List<String> list = setAddList();
        for (int i = 0;i<list.size();i++){
            System.out.println(list.get(i));
        }

        return list;
    }

    public static void main(String[] args) {
        new AddList().setAddListsTY();
        System.out.println(new AddList().setAddList().get(0));
    }
}
